dev:
	mvn spring-boot:run

build-fatjar:
	mvn clean package -Dmaven.test.skip=true


build-image:
	docker build -t cloudpivot-webapi:latest .

docker-test-run-local:
	docker run -ti --rm --name webapi-test-run-local -e JAVA_OPTS="-Dspring.profiles.active=local -Xms1g -Xmx1g" cloudpivot-webapi:latest

docker-test-run-prod:
	docker run -ti --rm --name webapi-test-run-prod -e JAVA_OPTS="-Dspring.profiles.active=prod -Xms2g -Xmx2g" cloudpivot-webapi:latest
